#include <stdio.h>
#include <math.h>
#include <stdlib.h>

int main(int argc,char **argv)
{
  char a[3] = {'a','b','c'};  
  int i = 0;
  int result = 0;
  int width =  8; 
  for(i = 0;i<3;i++)
    {
      result = (result << width)
        | (a[i]
           & ((1 << width) - 1));
    }
  printf("%d\n",result);
  return 0;
}
